package com.runnirr.doodles.Helpers;

import java.io.Serializable;

public class DoodleData implements Serializable {

	private static final long serialVersionUID = 1L;

	public final Integer year;
	public final Integer month;
	public final String title;
	public final String name;
	public final String image;
	public final String text;
	public final Long startTime;
	public final String url;
	public final String ID;
	public final String monthName;

	/**
	 * Constructor
	 * @param year (1999 - Present)
	 * @param month (1-12)
	 * @param name
	 * @param title
	 * @param text (html)
	 * @param image (link)
	 * @param startTime	 (milliseconds)
	 * @param id (unique string)
	 */
	public DoodleData(Integer year, Integer month, String name, String title, String text, String image, Long startTime, String id){
		this.year = year;
		this.month = month;
		this.name = name;
		this.title = title;
		this.text = text;
		this.image = image;
		this.startTime = startTime;
		this.url = "http://www.google.com/doodles/" + name;
		this.ID = id;
		this.monthName = Utils.getMonthNameFromInt(month);
	}

}
